package example.singleton;

import java.lang.reflect.Constructor;

public class Test02_Singleton02 {

    public static void main(String[] args) throws Exception {
        Constructor<Singleton02> declaredConstructor = Singleton02.class.getDeclaredConstructor(null);
        declaredConstructor.setAccessible(true);
        Singleton02 singleton02 = declaredConstructor.newInstance();
        System.out.println(singleton02);

        Singleton02 instance = Singleton02.getInstance();
        System.out.println(instance);
    }
}
